package Demo2;

public class MyMath {
    //泛型方法
    public static <E extends Comparable<E>> E IntegerCompare(E number1,E number2){
        if(number1.compareTo(number2) > 0){
            return number1;
        }else{
            return number2;
        }
    }



}
